package com.chengxiaoxiao.ai_demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 消息信息
 *
 * @Description:
 * @Author Cheng Xiaoxiao
 * @Date: 2025/3/10 11:04
 */
@Data
@TableName("message_info")
@Schema(description = "消息记录")
public class MessageInfo implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 所属会话ID
     */
    private String conversationId;

    /**
     * 消息
     */
    @Schema(description = "消息")
    private String message;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
